<!--BEGIN SOURCE CODE FOR EXAMPLE =============================== -->
<div class="workarea">
    <ul id="ul_cat_<?php echo $ulId; ?>" class="draglist">
        <?php foreach ($aryNewsCategory as $key => $value) {
 ?>
            <li class="list1" id="li_cat_<?php echo $value['news_category_id']; ?>" ><span><img src="/public/images/form/delete.png" title="Xóa danh mục này." onclick="AdminController.deleteCategoryById(<?php echo $value['news_category_id']; ?>, <?php echo $ulId; ?>, <?php echo $parentCategoryId; ?>);"><img src="/public/images/form/icon-edit.gif" title="Chỉnh sửa danh mục này." onclick="AdminController.showEditCategory('<?php echo $value['news_category_id']; ?>');"></span><a onclick="AdminController.getListNewsCategory('<?php echo $value['news_category_id']; ?>', '<?php echo $nextUlId; ?>');AdminController.selectedItemProductCategory('<?php echo $ulId; ?>', '<?php echo $value['news_category_id']; ?>');"><?php echo $value['news_category_name']; ?><?php echo ($value['news_category_total_child'] > 0) ? '<img src="/public/images/form/arrow_next.png" width=12 height=12>' : ''; ?></a>
                <div id="edit_cat_<?php echo $value['news_category_id']; ?>" class="hide">
                    <div>
                        <input style="width: 158px;" type="text" id="input_cat_<?php echo $value['news_category_id']; ?>" value="<?php echo $value['news_category_name']; ?>">
                    </div>
                    <div>
                        <input type="button" class="submit" value="Lưu" onclick="AdminController.saveNewsCategoryById(<?php echo $value['news_category_id']; ?>, <?php echo $ulId; ?>, <?php echo $parentCategoryId; ?>)">
                        <input type="button" class="submit" value="Hủy" onclick="AdminController.closeEditCatById(<?php echo $value['news_category_id']; ?>);">
                    </div>
                </div>
            </li>

<?php } ?>
    </ul>
</div>